import java.util.*;

public class ForTest{
	public static void main(String[] args) {
		String[] str = {"one","two","threee"};
		int[] intdata = {2,2,3};
		
		/*
		for(int i=0;i<intdata.length;i++){
			System.out.println(intdata[i]);
		}

		Collection strlist = Arrays.asList(str);
		for(Iterator i = strlist.iterator();i.hasNext();){
			System.out.println(i.next());
		}
		*/
		for(int i:intdata){
			System.out.println(i);
		}

		Collection strlist = Arrays.asList(str);
		for(Object i : strlist){
			System.out.println(i);
		}
		
	}
}